package com.xhsd.zlong.generatecode;

import java.io.IOException;

import com.xhsd.zlong.generatecode.impl.Generator;

public class Main {

	public static void main(String[] args) throws Exception {
		new Main().gencode();

	}

	public void gencode() throws IOException, Exception {

		String url = "jdbc:mysql://localhost/crm?characterEncoding=GBK&zeroDateTimeBehavior=convertToNull";

		IGenerator generator = Generator.getInstance(url, "root", "root");

		generator.generate("d:\\gen");

	}

}